<template>
  <div id="updateDialog">
    <el-dialog class="box" title="精准查询" :visible.sync="updateDialogShow" :before-close="handleClose">
      <div class="content">

        <el-form ref="form"  label-width="100px">
          <el-form-item label="出厂编号：">
            <el-input v-model="cid"></el-input>
          </el-form-item>
          <!--<el-form-item label="设备编号：">-->
            <!--<el-input v-model="equip_cid"></el-input>-->
          <!--</el-form-item>-->
        </el-form>

      </div>
      <div slot="footer" class="dialog-footer">
        <el-button type="danger" @click="sureData" >确定</el-button>
        <el-button type="warning" @click="handleClose" >关闭</el-button>
      </div>

    </el-dialog>
  </div>
</template>

<script>
  export default {
    props: {
    },
    components: {
    },
    data() {
      return {
        restatus: '更新',
        updateDialogFalse: false,
        cid: '',
        from: {
          cid: '',
          equip_cid: ''
        }
      }
    },
    mounted() {
    },
    created() {
      this.updateDialogShow = true
    },
    methods: {
      sureData() {
        this.handleClose()
        this.restar()
      },
      // 子组件传值
      handleClose() {
        const dialogShow = this.updateDialogFalse // 所需要传的值
        this.$emit('giveFalse', dialogShow) // 传值的参数
      },
      // 保存成功返回测点列表
      restar() {
        this.$emit('rerule', this.cid)
      }
    }
  }
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  /*****************第一层弹窗*****************/
  .content{
    width: 750px;
    height: 140px;
    margin-top: 10px;
    margin-left: 10px;
    input{
      border-radius: 4px;
      border: 1px solid #E5E5E5;
      height: 27px;
      width: 326px;
      position: absolute;
      z-index: 10;
      margin-left: 60px;
      padding-left: 10px;
    }
    .first{
      font-size:14px;
      font-family:MicrosoftYaHei;
      font-weight:400;
      color:rgba(51,51,51,1);
      line-height:30px;
      .el-col {
        border-radius: 4px;
      }
      .bg-purple-dark {
        background: #fff;
      }
      .bg-purple {
        background: #fff;
      }
      .bg-purple-light {
        background: #fff;
      }
      .grid-content {
        border-radius: 4px;
        height: 30px;
      }
    }

  }
  .tableIcon{
    i{
      font-size: 22px;
    }
  }
  /deep/ .el-range-editor--small.el-input__inner {
    height: 30px;
    width: 340px;
  }
  /deep/ .addSafeTable > .el-table__header-wrapper{
    height: 0px;
  }
  /*****************第一层弹窗*****************/
  /deep/ .box > .el-dialog{
    width: 790px;
    height: 300px;
    overflow: auto;
    margin-top: 20vh !important;
    border-radius: 4px;
  }
  /*****************第一层弹窗头部*****************/
  /deep/ .box > .el-dialog > .el-dialog__header{
    width: 790px;
    height: 39px;
    line-height: 43px;
    padding: 0;
    text-indent: 20px;
    font-weight: bolder;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background-color: #EFEFEF;
  }
  /deep/ .box > .el-dialog > .el-dialog__header > .el-dialog__headerbtn{
    top: 12px;
  }
  /deep/ .box > .el-dialog > .el-dialog__header > .el-dialog__headerbtn > i{
    font-size: 18px;
    font-weight: bolder;
  }
  /*****************第一层弹窗内容*****************/
  /deep/ .box > .el-dialog > .el-dialog__body{
    padding: 1px 0 0 10px ;
    height: 160px;
    line-height: 30px;
    overflow: auto;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  /*****************第一层弹窗底部*****************/
  /deep/ .box > .el-dialog > .el-dialog__footer{
    border-top: 1px solid #e3e6ee;
  }
  /*****************底部按钮*****************/
  /deep/ .el-dialog__footer {
    padding: 10px 20px 10px 0px;
    text-align: right;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  /deep/ .dialog-footer > .el-button{
    width: 80px;
    height: 30px;
    padding: 0;
  }
  /deep/ .el-input__inner {
    -webkit-appearance: none;
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #606266;
    display: inline-block;
    font-size: inherit;
    height: 30px;
    line-height: 30px;
    outline: 0;
    padding: 0 27px;
    -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
    transition: border-color .2s cubic-bezier(.645,.045,.355,1);
    width: 95%;
  }
  /deep/ .el-icon-minus {
    color: #D05133;
  }
  #updateDialog /deep/ .el-table tr {
    background-color: #F0F3F5;
  }
  #updateDialog /deep/  .el-table td {
    border-bottom: 10px solid #fff;
  }
  #updateDialog /deep/  .el-table--group::after, .el-table--border::after, .el-table::before {
    content: '';
    position: absolute;
    background-color: #fff;
    z-index: 1;
  }


</style>
